package com.itheima.iostream;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/*
写数据
 */
public class Demo01 {

    public static void main(String[] args) throws IOException {
        //创建对象
        FileOutputStream fos = new FileOutputStream("day12\\a.txt",true);
        //FileOutputStream fos = new FileOutputStream(new File("day12\\a.txt"),true);
        //写数据
        fos.write(100);//d
        fos.write(110);//n
        fos.write(80);//P
        fos.write(48);//P
        //释放资源
        fos.close();


    }
}
